package com.web.service;

import java.util.List;
import com.web.pojo.Contract;

public interface ContractService {
	/**
	 * 全部查询
	 * @return List<Contract>
	 */
	public List<Contract> listContract();
	/**
	 * 用户名称查询
	 * @param userName
	 * @return List<Contract>
	 */
	public List<Contract> ContractByUserName(String userName);
	/**
	 * 区域查询
	 * @param areaName
	 * @return List<Contract>
	 */
	public List<Contract> ContractByAreaName(String areaName);
	/**
	 * 合同ID查询合同
	 * @param contractID
	 * @return Contract
	 */
	public Contract ContractByContractID(String contractID);
	/**
	 * 根据contractID更新订单
	 * @param contract
	 * @return boolean
	 */
	public boolean ContractUpdateBycontractID(Contract contract);
	/**
	 * 根据合同ID删除合同
	 * @param contractID
	 * @return boolean
	 */
	public boolean deleteByContractID(String contractID);
	
}
